<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<a href="http://www.baidu.com">
		<img src="" id="you">
	</a>
</body>
<script type="text/javascript">
    you=document.getElementById('you');
	r=prompt('please input the name of the picture');
	m=r+'.jpg';
	you.src=m;
</script>
</html>